package com.buaa.aiguangxi.utils;

import java.util.Random;

public class RandomUtil {
	public static void initArray(double[] array, double l, double r) {
		for (int i = 0; i < array.length; i++) {
			double a = new Random().nextDouble();
			array[i] = l + a / (r - l);
		}
	}
}
